package com.hunan.api.catv.action.banner;

import com.hunan.api.catv.action.BaseAction;
import com.hunan.api.catv.common.Api;
import com.hunan.api.catv.entity.Result;
import com.hunan.api.catv.service.biz.banner.IndexBannerBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jiang zhuan
 * @version 1.0
 * @description 描述
 * @date 2021/11/25 0025
 * @package com.hunan.api.catv.action.banner
 * @company 湖南有线
 */
@RestController
@RequestMapping(Api.banner)
public class IndexBannerAction extends BaseAction {

    @Autowired
    IndexBannerBiz indexBannerBiz;

    @GetMapping("/bannerList")
    public Result noticeList() {
        return buildOK(indexBannerBiz.getBannerList(), "");
    }

}
